package com.pro.common.api.user.intf;

import com.pro.common.api.CommonConst;
import com.pro.common.api.depencies.base.ISaveBatchFeignClient;
import com.pro.common.api.user.model.db.UserBatchInfo;
import io.swagger.v3.oas.annotations.Hidden;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = CommonConst.Modules.user, contextId = "UserBatchInfoFeignClient")
@Hidden
public interface UserBatchInfoFeignClient extends ISaveBatchFeignClient<UserBatchInfo> {

    @PostMapping("/userBatchInfo/saveBatch")
    List<Long> saveBatch(@RequestBody List<UserBatchInfo> list);
}
